import axios from '@/libs/api.request'

/**
 * 重置用户头像昵称
 * @param data
 * @returns {wx.RequestTask | never}
 */
export const userAvatar = (data) => {
  return axios.request({
    url: 'Tools/userAvatar',
    method: 'post',
    data
  })
}

/**
 * 重置角色进度
 * @param data
 * @returns {wx.RequestTask | never}
 */
export const lastDungeon = (data) => {
  return axios.request({
    url: 'Tools/roleLastDungeon',
    method: 'post',
    data
  })
}

/**
 * 获取角色Unique
 * @param data
 * @returns {wx.RequestTask | never}
 */
export const getRoleUnique = (data) => {
  return axios.request({
    url: 'Tools/getRoleUnique',
    method: 'post',
    data
  })
}

/**
 * 清除玩家战令记录
 * @param data
 * @returns {wx.RequestTask | never}
 */
export const clearRoleWarOrder = (data) => {
  return axios.request({
    url: 'Tools/clearRoleWarOrder',
    method: 'post',
    data
  })
}

export const backOrder = (data) => {
  return axios.request({
    url: 'Tools/backOrder',
    method: 'post',
    data
  })
}

/**
 * 获取角色Unique
 * @param data
 * @returns {wx.RequestTask | never}
 */
export const closeServer = (data) => {
  return axios.request({
    url: 'Tools/closeServer',
    method: 'post',
    data
  })
}

/**
 * 重置角色技能
 * @param data
 * @returns {wx.RequestTask | never}
 */
export const roleSkill = (data) => {
  return axios.request({
    url: 'Tools/roleSkill',
    method: 'post',
    data
  })
}

/**
 * 生成指定装备
 * @param data
 * @returns {wx.RequestTask | never}
 */
export const createEquipment = (data) => {
  return axios.request({
    url: 'Tools/createEquipment',
    method: 'post',
    data
  })
}

export const offlineTopUp = (data) => {
  return axios.request({
    url: 'Tools/offlineTopUp',
    method: 'post',
    data
  })
}

export const mute = (data) => {
  return axios.request({
    url: 'Tools/mute',
    method: 'post',
    data
  })
}

/**
 * 获取APP强制更新内容
 * @param data
 * @returns {wx.RequestTask | never}
 */
export const getAppUpdate = (data) => {
  return axios.request({
    url: 'Tools/getAppUpdate',
    method: 'post',
    data
  })
}

/**
 * 更新APP强制更新内容
 * @param data
 * @returns {wx.RequestTask | never}
 */
export const saveAppUpdate = (data) => {
  return axios.request({
    url: 'Tools/saveAppUpdate',
    method: 'post',
    data
  })
}

/**
 * 每日累充返利
 * @param data
 * @returns {wx.RequestTask | never}
 */
export const dailyRecharge = (data) => {
  return axios.request({
    url: 'Tools/dailyRecharge',
    method: 'post',
    data
  })
}
